#ifndef MYLIB_H
#define MYLIB_H

#ifdef _WIN32
  #ifdef BUILDING_MYLIB
    #define MYLIB_API __declspec(dllexport)
  #else
    #define MYLIB_API __declspec(dllimport)
  #endif
#else
  #define MYLIB_API
#endif

extern "C" {
    MYLIB_API int add(int a, int b);
    MYLIB_API const char* get_version();
}

#endif // MYLIB_H



